#include "mainwindow.h"

#include <QApplication>
#include <QFile>

/******************************************************************************
 *
 * @file       main.cpp
 * @brief      XXXX Function
 *
 * @author     hre8
 * @date       2024/12/24
 * @history
 *****************************************************************************/

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //加载qss文件
    QFile qss(":/style/stylesheet.qss");
    if(qss.open(QFile::ReadOnly)){
        qDebug("qss file open scussfully");
        //将Qbytearray转换成 QString
        QString style = QLatin1String(qss.readAll());
        a.setStyleSheet(style);
        qss.close();
    }else{
        qDebug("qss file open error");
    }
    MainWindow w;
    w.show();
    return a.exec();
}
